package com.atgm.mall.gmmallperimall.feign;

import com.atgm.common.utils.R;
import com.atgm.mall.gmmallperimall.feign.fallback.CouponFeignFallbackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "gm-mall-coupon", fallback = CouponFeignFallbackService.class, qualifier = "couponFeignService")
public interface CouponFeignService {

    /**
     * 根据id获取周边商品信息
     * @param ids
     * @return
     */
    @GetMapping("/gmmallcoupon/perigoodssale/info")
    R getPeriGoodsSaleByPeriGoodsIds(@RequestParam("ids") List<Long> ids);

}
